@echo off
rem !cmd
rem crawl baidu e-book
rem


echo [baidu ebook] crawler version 0.1
echo.

if not exist "%JAVA_HOME%" (
	echo please set JAVA_HOME
	goto EOF
)
if not exist "%GROOVY_HOME%" (
	echo please set GROOVY_HOME
	goto EOF
)
if not exist "%GROOVY_HOME%\lib\jsoup-*.jar" (
	echo missing http://jsoup.org/packages/jsoup-1.7.3.jar
	goto EOF
)

%GROOVY_HOME%\bin\groovy -c utf-8 bot.groovy 4
:EOF